package com.hakim.wfb.dao;

import com.hakim.wfb.bean.PurchaseList;
import com.hakim.wfb.customer.params.goods.PurchaseListParameter;
import com.hakim.wfb.customer.result.purchase.PurchaseListView;
import com.hkfs.fundamental.api.data.ListResultEx;
import com.hkfs.fundamental.database.PageDaoBase;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface PurchaseListDao extends PageDaoBase<PurchaseList, String> {

    int updateByUserGoodsids(PurchaseList purchaseid);

    void deleChart(PurchaseList purchaseid);

    List<PurchaseListView> getChartList(PurchaseListParameter param);

    int getChartListCount(PurchaseListParameter para);

    int updateByIds(Map<String, String> map);

    double getChartSum(@Param("idList")String idList);
}
